package com.ry.es.demo;

import com.alibaba.fastjson.annotation.JSONField;
import com.ry.es.model.EsModel;

import java.sql.Timestamp;

/**
 * Created by walker on 17-11-23.
 *
 */
public class SampleModel extends EsModel
{
    private long id;
    private String code;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Timestamp createTime;
    @JSONField(format="yyyy-MM-dd HH:mm:ss")
    private Timestamp updateTime;
    private String note;
    private int status;
    private long count;

    public long getId()
    {
        return id;
    }

    public void setId(long id)
    {
        this.id = id;
    }

    public String getCode()
    {
        return code;
    }

    public void setCode(String code)
    {
        this.code = code;
    }

    public Timestamp getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Timestamp createTime)
    {
        this.createTime = createTime;
    }

    public Timestamp getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime)
    {
        this.updateTime = updateTime;
    }

    public String getNote()
    {
        return note;
    }

    public void setNote(String note)
    {
        this.note = note;
    }

    public int getStatus()
    {
        return status;
    }

    public void setStatus(int status)
    {
        this.status = status;
    }

    public long getCount()
    {
        return count;
    }

    public void setCount(long count)
    {
        this.count = count;
    }
}
